﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ServerYuGi.Block
{
    public class BlockData
    {
        public bool DuocPhep_RaBaiNormal { get; set; }

        public bool DuocPhep_RaBaiSpecial { get; set; }

        public bool DuocPhep_RutBai { get; set; }

        public bool DuocPhep_SetSpell { get; set; }

        public bool DuocPhep_SetTrap { get; set; }

        public bool DuocPhep_ActiveSpell { get; set; }

        public bool DuocPhep_ActiveTrap { get; set; }

        public bool DuocPhep_ActiveMonster { get; set; }

        public bool DuocPhep_TanCongTrucTiep { get; set; }

        public List<int> DuocPhep_TanCong { get; set; }

        public List<int> DuocPhep_DoiTrangThai { get; set; }

        public BlockData()
        {
            DuocPhep_RaBaiNormal = true;
            DuocPhep_RaBaiSpecial = true;
            DuocPhep_RutBai = true;
            DuocPhep_ActiveSpell = true;
            DuocPhep_ActiveTrap = true;
            DuocPhep_ActiveMonster = true;
            DuocPhep_TanCongTrucTiep = true;
            DuocPhep_TanCong = new List<int>();
            DuocPhep_DoiTrangThai = new List<int>();
        }
        public BlockData(BlockData data)
        {
            DuocPhep_RaBaiNormal = data.DuocPhep_RaBaiNormal;
            DuocPhep_RaBaiSpecial = data.DuocPhep_RaBaiSpecial;
            DuocPhep_RutBai = data.DuocPhep_RutBai;
            DuocPhep_ActiveSpell = data.DuocPhep_ActiveSpell;
            DuocPhep_ActiveTrap = data.DuocPhep_ActiveTrap;
            DuocPhep_ActiveMonster = data.DuocPhep_ActiveMonster;
            DuocPhep_TanCongTrucTiep = data.DuocPhep_TanCongTrucTiep;
            DuocPhep_TanCong = new List<int>(data.DuocPhep_TanCong);
            DuocPhep_DoiTrangThai = new List<int>(data.DuocPhep_DoiTrangThai);
        }
        public void Reset()
        {
            DuocPhep_RaBaiNormal = true;
            DuocPhep_RaBaiSpecial = true;
            DuocPhep_RutBai = true;
            //  [4/22/2010 TinNguyen] ( Khong phai Luc nao cung duoc phuc hoi cac quyen nay luc het luot
            //DuocPhep_ActiveSpell = true;
            //DuocPhep_ActiveTrap = true;
            //DuocPhep_ActiveMonster = true;
            DuocPhep_TanCongTrucTiep = true;
            DuocPhep_TanCong.Clear();
            DuocPhep_DoiTrangThai.Clear();
        }
    }
}
